package resources;

import bean.Contact;
import bean.Term;
import com.sun.jersey.api.NotFoundException;
import storage.ContactStore;
import storage.OwllinkServer;

import javax.ws.rs.GET;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Request;
import javax.ws.rs.core.UriInfo;

/**
 * Created by IntelliJ IDEA.
 *
 * @author Sarala Wimalaratne
 *         Date: 15-Aug-2011
 *         Time: 16:45:59
 */
public class TermResource {
    @Context
        UriInfo uriInfo;
	@Context
    Request request;
	String term;

	public TermResource(UriInfo uriInfo, Request request, String term) {
		this.uriInfo = uriInfo;
		this.request = request;
		this.term = term;
	}

/*    @GET
	@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
	public Term getTerm() {
		Term cont = OwllinkServer.getSubClasses(term);
		if(cont==null)
			throw new NotFoundException("No such Contact.");
		return cont;
	}*/
}
